package com.leunpha.mini.spider.bean;

/**
 * User: zhoujingjie
 * Date: 14-7-5
 * Time: 上午10:03
 */
public class ErrorBean {
    private Throwable throwable;
    private String url;
    private Object attachment;

    public ErrorBean() {
    }

    public ErrorBean(Throwable throwable, String url) {
        this(throwable, url,null);
    }

    public ErrorBean(Throwable throwable, String url, Object attachment) {
        this.throwable = throwable;
        this.url = url;
        this.attachment = attachment;
    }

    public Throwable getThrowable() {
        return throwable;
    }

    public void setThrowable(Throwable throwable) {
        this.throwable = throwable;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Object getAttachment() {
        return attachment;
    }

    public void setAttachment(Object attachment) {
        this.attachment = attachment;
    }
}
